<?php
namespace Json\Controller;
use Think\Controller;
class activityController extends Controller {
  public function activitylistJson(){
       
       $use= $this->users=M('activity')->select();
   echo json_encode($use);
      } 
  
    public function activityOneJson($id){
       
       $activity = M('activity') -> where("actid='$id'") -> find();
       echo json_encode($activity);
      } 
}
?>